package com.example.nioprc.infrastructure.protocol;

import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * Rpc请求对象，客户端发送到服务端的请求数据
 */
@Data
public class RpcRequest implements Serializable {
    @Serial
    private static final long serialVersionUID = -5950455066889208736L;
    //请求ID
    private String requestId;
    //服务名称
    private String serviceName;
    //方法名称
    private String methodName;
    //参数类型
    private Class<?>[] parameterTypes;
    //参数值
    private Object[] parameters;
}
